package com.ruoyi.jihuo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.jihuo.domain.JhTmAccount;
import com.ruoyi.jihuo.domain.search.JhTmAccountSearch;

import java.util.List;

/**
 * 天猫账户Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-27
 */
public interface JhTmAccountMapper extends BaseMapper<JhTmAccount> {
    /**
     * 查询天猫账户
     *
     * @param jhId 天猫账户主键
     * @return 天猫账户
     */
    public JhTmAccount selectJhTmAccountByJhId(Long jhId);

    /**
     * 查询天猫账户列表
     *
     * @param jhTmAccount 天猫账户
     * @return 天猫账户集合
     */
    public List<JhTmAccount> selectJhTmAccountList(JhTmAccountSearch jhTmAccount);


    /**
     * 查询所有天猫账户列表
     *
     * @return 天猫账户集合
     */
    public List<JhTmAccount> selectAllJhTmAccountList(Long userId);

    /**
     * 新增天猫账户
     *
     * @param jhTmAccount 天猫账户
     * @return 结果
     */
    public int insertJhTmAccount(JhTmAccount jhTmAccount);

    /**
     * 修改天猫账户
     *
     * @param jhTmAccount 天猫账户
     * @return 结果
     */
    public int updateJhTmAccount(JhTmAccount jhTmAccount);

    /**
     * 删除天猫账户
     *
     * @param jhId 天猫账户主键
     * @return 结果
     */
    public int deleteJhTmAccountByJhId(Long jhId);

    /**
     * 批量删除天猫账户
     *
     * @param jhIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJhTmAccountByJhIds(Long[] jhIds);

    /**
     * 修改天猫账户
     *
     * @param jhTmAccount 天猫账户
     * @return 结果
     */
    public int updateJhTmAccountConfig(JhTmAccount jhTmAccount);
}
